//
//  UIView+CornerShadow.h
//  testDmoe2
//
//  Created by 马致远尿你 on 2019/12/20.
//  Copyright © 2019 马致远尿你. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

//滚动视图里面用小心，用法看.m文件代码
@interface UIView (CornerShadow)

- (void)addCornersAndShadow;

- (void)addCorners:(UIRectCorner)corners
       shadowLayer:(void (^)(CALayer * shadowLayer))shadowLayer;

- (void)addCorners:(UIRectCorner)corners
            rRadii:(CGFloat)rRadii;

/*
 @param corners 圆角设置
 @param rRadii 圆角设置
 @return shadowLayer 阴影设置
 */
- (void)addCorners:(UIRectCorner)corners
            rRadii:(CGFloat)rRadii
       shadowLayer:(nullable void (^)(CALayer * shadowLayer))shadowLayer;

@end


NS_ASSUME_NONNULL_END
